<script setup>
import {useRouter} from "vue-router";
import Footer from "@/components/Footer.vue";
const router=useRouter()
function toLogin(){
  router.push("/user/login")
}
</script>

<template>
  <div class="home">
    <div class="bg">
    </div>
    <div class="infos">
      <transition-group tag="div" name="hello">
        <div class="mainText">
          Deep Ocean<br>
          Forecasting Center
        </div>
      </transition-group>

        <div class="minorText">
          Explore the sea field<br>
          while visualizing and<br>
          facilitating marine forecast
        </div>
      <div @click="toLogin" class="start">
        GET STARTED
      </div>
    </div>
  </div>
  <Footer></Footer>
</template>

<style scoped lang="less">
.home {
  //position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  text-align: center;
  align-items: center;

  .bg {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: url("@/assets/img/home/home-bg.jpg") 0 0 / 100% 100%;
  }

  .infos {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    width: 700px;
    height: 700px;
    display: flex;
    align-items: center;
    flex-direction: column;

    .mainText {
      color: #fff;
      text-align: left;
      width: 100%;
      transform: translateX(25%);
      font-size: 40px;

    }

    .minorText {
      color: #fff;
      width: 100%;
      transform: translateX(25%);
      font-size: 20px;
      margin-top: 50px;
      text-align: left;
    }

    .start {
      margin-top: 200px;
      display: flex;
      align-items: center;
      justify-content: center;
      width: 150px;
      height: 50px;
      background-color: #fff;
      border-radius: 50px;
      font-weight: 600;
      font-size: 18px;
      cursor: pointer;
    }
  }

}

@media screen and (max-width: 2000px) {
  .home {
    .bg {
      top: 50px;
    }

    .infos {
      height: 400px;
      top: 55%;

      .mainText {
        text-align: center;
        transform: translateX(0%);
        font-size: 35px;
      }

      .minorText {
        text-align: center;
        transform: translateX(0%);
        margin-top: 30px;
        font-size: 20px;
      }

      .start {
        margin-top: 30px;
        font-size: 15px;
        width: 125px;
        height: 35px;
      }
    }
  }
  .footer{
    top:611px;
  }
}

</style>
<!--2024/2/7 23:19-->